/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package slisfx.other;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Orientation;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.TilePane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
import javafx.stage.Stage;
import slisfx.Globals;

/**
 *
 * @author Rebecca
 */
public class SLISFX extends Application implements Globals {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }
    
    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("NASA SLIS!");
        Button btn = new Button();
        Button btn1 = new Button();
        Button btn2 = new Button();
        Button btn3 = new Button();
        Button btn4 = new Button();
        btn.setText("Say 'Welcome to NASA SLIS'");
        btn1.setText("Return to main menu.")
;       btn.setOnAction(new EventHandler<ActionEvent>()
        {

            @Override
            public void handle(ActionEvent event) {
                System.out.println("Hello World!");
            }
        });
        btn1.setOnAction(new EventHandler<ActionEvent>()
        {

            @Override
            public void handle(ActionEvent event) {
                System.out.println("This will call function!");
            }
        });
        //This is for our main Layout.
        
        BorderPane mainWindow = new BorderPane();
        
        /* Here we can add images instead of Rectangle in the Future*/
        
        mainWindow.setTop(new Rectangle(200,50, Color.BLUE));
        mainWindow.setBottom(new Rectangle(200,50, Color.BLACK));
        mainWindow.setLeft(new Rectangle(50,100, Color.AZURE));
        mainWindow.setRight(new Rectangle(50, 100, Color.LEMONCHIFFON));
        
        /*Here we create a vertical menu*/
        VBox mainMenu = new VBox();
        mainMenu.setPadding(new Insets(10, 10, 10, 10));
        mainMenu.setSpacing(10);
        Text title = new Text("Choose from the options below");
        title.setFont(Font.font("Amble CN", FontWeight.BOLD, 14));
        mainMenu.getChildren().add(title);
        mainMenu.getChildren().add(btn);
        mainMenu.getChildren().add(btn1);
        
        /*We place it in the center of screen*/
        mainWindow.setCenter(mainMenu);

        /*Sets the screen size and displays*/
        primaryStage.setScene(new Scene(mainWindow, WIDTH, HEIGHT));
        primaryStage.show();
        
        
    }
}
